package jsyf.oa.dao.business;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.business.BusinessMatterEntity;
import jsyf.oa.entity.device.DeviceBrandEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by 92852 on 2018/3/30.
 */
@Repository
public class BusinessMatterDao extends BaseDao {

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {

        return JSON.toJavaObject(json, BusinessMatterEntity.class);
    }

    public BusinessMatterDao() {
        super.iBaseEntity = new BusinessMatterEntity();
    }


}
